﻿using System;
using System.Data;
using System.Linq;
using System.Threading.Tasks;

using Xc.DataAccess.Core;
using Xc.DataAccess.DataBase.DeviceInfos.Models;

namespace Xc.DataAccess.DataBase.DeviceInfos
{
    public interface IDbDeviceInfoPropertyService
    {
        ResultData<PropertyInfo[]> GetProperties(string deviceid);
        IQueryable<PropertyInfoHistory> GetProperties(string deviceId, DateTime? dateTimeStart, DateTime? dateTimeEnd);
        Task<DataTable> GetPropertiesTable(string deviceId, DateTime? dateTimeStart, DateTime? dateTimeEnd);
        Result SetProperty(string name, string value, string deviceId);
    }
}